<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/10/30
 * Time: 14:02
 */

namespace app\MAPP\shop\ctl;


use function core\alert;
use function core\backto;
use core\lib\BaseControlerDB;
use app\MAPP\shop\mode\buy\func as buyd;
use function core\p;

class buymc extends BaseControlerDB
{
    var $mode;
    function __USERFUNC()
    {
        $this->mode=new buyd();
    }

    function buyselect(){
        $buy = $this->msg->Postparms();
        $this->mode->buyselect($buy);
        alert("ok");
        backto($this->msg->referer);
    }
}